﻿using System;
using System.Xml.Serialization;

namespace EpiNEXT.Data.P2PSync
{
    public abstract class SyncDriverBase : ISyncDriver
    {
        [XmlElement]
        public bool CanTransmit { get; set; }

        [XmlElement]
        public bool CanReceive { get; set; }

        public abstract void OpenConnection();
        public abstract void CloseConnection();

        public SyncDriverBase()
            : base()
        {
            CanTransmit = true;
            CanReceive = true;
        }
    }
}
